# -*- coding: utf-8 -*-
# @Time    : 2018/8/15 14:25
# @Author  : 聂家利
# @Email   : 1073438012@qq.com
# @File    : ConfigData.py
# @Software: PyCharm


class ConfigData(object):
    """
    将实例对象变成字典便于访问
    """
    def __init__(self, **kwarg):
        self.__dict__.update(kwarg)

    def __getitem__(self, attr):
        return super(ConfigData, self).__getattribute__(attr)

    def __getattribute__(self, attr):
        return super(ConfigData, self).__getattribute__(attr)